//
//  sendTopViewController.m
//  FastRunDemo
//
//  Created by 苟亚明 on 16/9/27.
//  Copyright © 2016年 苟亚明. All rights reserved.
//

#import "sendTopViewController.h"
#import "MBProgressHUD+MJ.h"
@interface sendTopViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btnTopTwo;
@property (weak, nonatomic) IBOutlet UIButton *btnTopOne;
@property (weak, nonatomic) IBOutlet UIButton *btnTopEnght;

@end

@implementation sendTopViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    UIImage *image = [UIImage imageNamed:@"transparent-1"];
    [self.navigationController.navigationBar setBackgroundImage:image
                                                  forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:image];
    
}
- (void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
    [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:nil];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"置顶";
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"arrow_back" highImage:@"arrow_back" target:self action:@selector(leftBtnClick)];
}

- (void)leftBtnClick{
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)btnTopDayClick:(UIButton *)sender {
    if (sender == self.btnTopOne) {
        self.btnTopOne.selected = YES;
        self.btnTopTwo.selected = NO;
        self.btnTopEnght.selected = NO;
    }else if(sender == self.btnTopTwo){
        self.btnTopEnght.selected = NO;
        self.btnTopTwo.selected = YES;
        self.btnTopOne.selected = NO;
    } else{
        
        self.btnTopEnght.selected = YES;
        self.btnTopTwo.selected = NO;
        self.btnTopOne.selected = NO;
    }
}
- (IBAction)btnNoTopClick:(id)sender {
    [self leftBtnClick];
}
- (IBAction)btnGoPayClick:(id)sender {
    [MBProgressHUD showError:@"你木有钱"];
}

@end
